<link rel="stylesheet" href="/static/layui/css/layui.css">
<script src="/static/layui/layui.js"></script>
<div id="ma_header" class="ma_shadow">
    <div class="ma_in_header cl bar_1_header">
        <h1 class="ma_logo z"><a href="http://www.apicloud.com/" title="apicloud"><img src="/static/index_model/images/logo-dark.png" alt="apicloud" /> <span class="undis">apicloud</span></a> </h1>
        <dl class="ma_nav y">
            <dd>
                <div class="ma_header_nav_right">
                    <div class="ma_header_nav_right_btn" style=" min-width:100px;">
                        <div class="header-redspot-tips" id="header_red_tips" style="display:none;">
                            <i></i>
                            <span></span>
                        </div> {if $status!=0}{$user.user_nickname}{else /}未登录{/if}
                        <!-- 20141104 移动提醒小红点 -->
                        <i class="arrow-w"></i>
                    </div>
                    {if $status!=0}
                    <div class="ma_login_box">
                        <div class="ma_after_login" style="">
                            <img src="/static/index_model/images/header_login_ico.png" class="ma_after_login_nrrow" />
                            <div class="ma_after_login_info cl">
                                <a href="#" target="_blank" class="ma_after_login_info_img z"><img src="{if empty($user['user_img'])}/static/index_model/images/null.png {else /}{$user.user_img}{/if}" /></a>
                                <div class="ma_after_login_info_des z">
                                    <a href="http://www.apicloud.com/profile" target="_blank" class="ma_info_des_name">{$user.user_nickname}</a>
                                    <div class="extra" style="float:right;"></div>
                                    <span class="ma_info_des_level"><a href="home.php?mod=spacecp&amp;ac=usergroup&amp;gid=10">UID:{$user.id}</a></span>
                                </div>
                            </div>
                            <ul class="ma_info_des_list cl">
                                <li style="width:58px; border:0;"><a href="home.php?mod=space&amp;uid=15264&amp;do=thread&amp;view=me&amp;from=space" target="_blank">主 题<br /><span>0</span></a></li>
                                <li style="width:70px;"><a href="home.php?mod=space&amp;uid=15264&amp;do=friend&amp;view=me" target="_blank">粉 丝<br /><span>0</span></a></li>
                                <li><a href="home.php?mod=spacecp&amp;ac=credit" target="_blank">积 分<br /><span>1</span></a></li>
                            </ul>
                            <div class="ma_after_login_center">
                                <div class="ma_after_login_center_top cl">
                                    <a href="home.php?mod=space&amp;do=pm" target="_blank" class="newpma"><span style="background-image:url(/static/index_model/images/my_article.png);"></span><br />我的帖子</a>
                                    <a href="home.php?mod=space&amp;do=notice" target="_blank"><span style="background-image:url(/static/index_model/images/histroy.png);"></span><br />浏览历史</a>
                                    <a href="/admin/index/index" target="_blank"><span style="background-image:url(/static/index_model/images/gl.png);"></span><br />帖子管理</a>
                                    <a href="member.php?mod=logging&amp;action=logout&amp;formhash=a342f2a3" style="margin-right:0;"><span style="background-image:url(/static/index_model/images/logout.png);"></span><br />退出账号</a>
                                </div>
                            </div>
                            <div class="ma_after_login_bottom">
                                <h3></h3>
                                <ul class="cl">
                                </ul>
                            </div>
                        </div>
                    </div>
                    {else /}
                    <div class="ma_login_box">
                        <div class="ma_after_login" style="">
                            <img src="/static/index_model/images/header_login_ico.png" class="ma_after_login_nrrow" />
                            <div class="ma_after_login_info cl">
                                <a href="/index/user/login" target="_blank" class="ma_after_login_info_img z"><img src="/static/index_model/images/icon_1.png" /></a>
                                <div class="ma_after_login_info_des z">
                                    <a href="/index/user/login" target="_blank" class="ma_info_des_name">未登录</a>
                                    <div class="extra" style="float:right;"></div>
                                    <span class="ma_info_des_level"><a href="/index/user/register">没有账号？点此注册</a></span>
                                </div>
                            </div>
                            <ul class="ma_info_des_list cl">
                                <li style="width:58px; border:0;"><a href="home.php?mod=space&amp;uid=15264&amp;do=thread&amp;view=me&amp;from=space" target="_blank">主 题<br /><span>0</span></a></li>
                                <li style="width:70px;"><a href="home.php?mod=space&amp;uid=15264&amp;do=friend&amp;view=me" target="_blank">粉 丝<br /><span>0</span></a></li>
                                <li><a href="home.php?mod=spacecp&amp;ac=credit" target="_blank">积 分<br /><span>1</span></a></li>
                            </ul>
                            <div class="ma_after_login_center">
                                <div class="ma_after_login_center_top cl">
                                    <div style="width: 216px; margin: 0;">
                                        <button onclick="location.href='/index/user/login'" type="button"  class="layui-btn layui-btn-fluid" style="margin-left: -10px">登&nbsp&nbsp录</button>
                                    </div>
                                </div>
                            </div>
                            <div class="ma_after_login_bottom">
                                <h3></h3>
                                <ul class="cl">
                                </ul>
                            </div>
                        </div>
                    </div>
                    {/if}

                </div>
            </dd>
        </dl>
        <div class="ma_left_nav z">
            <!--  <a class="" id="select_home" href="./" target="_self" title="论坛首页">论坛首页<i class="arrow-g" style="display:none;"></i></a>
                  <a class="" href="#" target="_blank" title="商城">商城</a> -->
            <a class="" href="http://www.apicloud.com/console" title="控制台">控制台</a>
            <a class="" href="http://www.apicloud.com/member" title="成员">成员</a>
            <a class="" href="http://docs.apicloud.com/" title="文档">文档</a>
            <a class="" href="http://community.apicloud.com/bbs" title="社区">社区</a>
            <a class="" href="http://www.apicloud.com/modulestore" title="模块store" target="blank">模块store</a>
        </div>
        <div class="search_box y" id="efscbar">
            <form id="scbar_form" method="post" autocomplete="off" onsubmit="searchFocus($('scbar_txt'))" action="search.html?searchsubmit=yes" target="_blank">
                <input type="hidden" name="mod" id="scbar_mod" value="search" />
                <input type="hidden" name="formhash" value="a342f2a3" />
                <input type="hidden" name="srchtype" value="title" />
                <input type="hidden" name="srhfid" value="37" />
                <input type="hidden" name="srhlocality" value="forum::forumdisplay" />
                <input class="search_txt z" type="text" name="srchtxt" id="scbar_txt" placeholder="关键字查找" autocomplete="off" speech="" />
                <style>#scbar_txt::-webkit-input-placeholder{color:#01654a;}
                .search_box_hover #scbar_txt::-webkit-input-placeholder{color:#b8d4ca;}</style>
                <div id="scbar_type" class="ma_scbar_type z" onclick="showMenu({'ctrlid':this.id,zindex:1000})" hidefocus="true">
                    搜索
                </div>
                <button type="submit" name="searchsubmit" id="scbar_btn" sc="1" class="search_btn z" value="true"></button>
            </form>
        </div>
    </div>
    <ul id="scbar_type_menu" class="p_pop search-menu" style="display: none;">
        <li><a href="javascript:;" rel="forum" class="curtype">帖子</a></li>
        <li><a href="javascript:;" rel="user">用户</a></li>
    </ul>
    <div class="ma_in_header cl bar_2_header">
        <div class="bar-2-left z">
            {foreach $nav as $v}
            <li class="bar-2-item" id="mn_N5b39"><a href="/index/index/lists?id={$v.id}" hidefocus="true">{$v.cate_name}</a></li>
            {/foreach}
        </div>
    </div>
    <script type="text/javascript">
        initSearchmenu('scbar', '');
    </script>
</div>